package com.fly.product.repository;

import com.fly.product.domain.ProductInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author Fly
 * @Description
 * @Date Created in 21:18 2018/3/30
 * @Modified by
 */
public interface ProductInfoRepository extends JpaRepository<ProductInfo,String>{

    /**
     * 根据状态查询
     * @param productStatus
     * @return
     */
    List<ProductInfo> findAllByProductStatus(Integer productStatus);
}
